# -*- coding: utf-8 -*-

'''
python 常用模型的属性的getter setter 实现方式
    1. @property 注解方式实现
    2. property(getMethod, setMethod)
'''


class Friends(object):

    def __init__(self) -> None:
        self.__userName = ''
        self.__nickName = ''
        self.__sex = ''
        self.__province = ''

    @property
    def userName(self):
        self.__userName

    @userName.setter
    def userName(self, userName):
        self.__userName = userName

    def getNickName(self):
        self.__nickName

    def setNickName(self, nickName):
        self.__nickName = nickName

    nickName = property(getNickName, setNickName)
